﻿@using GameSchool.HtmlHelpers
@model GameSchool.Models.AccountModels.LogOnModel
@{
    Layout = "~/Views/Shared/_LogOnLayout.cshtml";
    ViewBag.Title = "Innskráning";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@Html.ValidationSummary(true, "Innskráning tókst ekki. Vinsamlega leiðréttu villurnar og reyndu aftur.")
@*@using (Html.BeginForm(htmlAttributes: new { @class = "well" }))*@
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Innskráning</legend>
        <div class="control-group">
            <div class="controls">
                @Html.TextBoxFor(m => m.UserName, new { @class = "input-large", placeholder = "Notandanafn" })
                @Html.ValidationMessageFor(m => m.UserName)
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                @Html.PasswordFor(m => m.Password, new { @class = "input-large", placeholder = "Lykilorð" })
                @Html.ValidationMessageFor(m => m.Password)
            </div>
        </div>
        <div>
            <label class="checkbox" for="RememberMe">
                Muna eftir mér? @*@Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })*@
                @Html.CheckBoxFor(m => m.RememberMe)
            </label>
        </div>
        <div class="form-actions">
            <input type="submit" class="btn btn-primary" value="Innskrá" />
        </div>
    </fieldset>
}
